import {system} from "../function_menu/dispatch";
let enrolmentManagement = system("enrolmentManagement", ["form", "search", "formGet"], {
  state: {
    idKey:"userId",
    roleKey:"roleId",
    updateAvatarId: '',
    vuexSearchForm: null
  },
  mutations: {
    updateInfo(state, par) {
      if(par[1] instanceof Array){
        state[par[0]] = par[1];
      }else {
        state[par[0]] = Object.assign({}, state[par[0]]  , par[1]);
      }
      
      console.log(state)
    }
  }

})

export default enrolmentManagement;
